package cn.lcc.utils.utils.method;

import cn.lcc.utils.commom.Resp;
import cn.lcc.utils.commom.annotation.Endpoint;
import cn.lcc.utils.commom.annotation.Mapping;
import cn.lcc.utils.commom.pack.UD_DE;
import cn.lcc.utils.commom.pack.UD_DEMO;
import com.alibaba.fastjson2.JSON;
import org.springframework.stereotype.Component;


@Endpoint
@Component
public class JT808Endpoint {

    @Mapping(pointType="UD_DE",types = 0x4445, desc = "终端通用应答")
    public void UD_DE(UD_DE d, Resp ctx) {
        System.out.println("===============UD_DE"+ JSON.toJSONString(d)+" ==== "+JSON.toJSONString(ctx));
    }

    @Mapping(pointType="UD_DEMO",types = 0x44454d4f, desc = "终端RSA公钥")
    public void UD_DEMO(UD_DEMO d, Resp ctx) {
        System.out.println("===============UD_DEMO"+ JSON.toJSONString(d)+" ==== "+JSON.toJSONString(ctx));
    }
}